import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Mine from '../views/mine.vue'
import Input from '../views/input.vue'
import ResetPsw from '../views/resetPsw.vue'
import Login from '../views/Login.vue'
import Start from '../views/Start.vue'
import Notice from '../views/notice.vue'
import NoticeInfo from '../views/noticeInfo.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Start',
    component: Start
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/mine',
    name: 'Mine',
    component: Mine
  },
  {
    path: '/input',
    name: 'Input',
    component: Input
  },
  {
    path: '/reset',
    name: 'reset',
    component: ResetPsw
  },
  {
    path: '/notice',
    name: 'notice',
    component: Notice
  },
  {
    path: '/noticeInfo',
    name: 'noticeInfo',
    component: NoticeInfo
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  }
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
